package design.pattern.factory.simpleFactory;

/**
 * @description: 简单工厂测试
 * @author: liuzhangcheng
 **/
public class SimpleFactoryTest {
    public static void main(String[] args) {
        // 0、没有使用工厂模式前
//        ICourse java = new JavaCourse();
//        java.record();

        // 1、使用工厂模式后
        CourseFactory factory = new CourseFactory();
        ICourse course = factory.create("java");
        course.record();

    }
}
